package com.sgb.kjwl.aroute;

import android.content.Context;
import android.content.Intent;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.sgb.auction.activity.AuctionPublishActivity;
import com.sgb.kjwl.view.ui.activity.WebViewX5HostActivity;
import com.sgb.zhaocai.view.demand.activity.ProjectIssueActivity;
import com.swgk.core.base.aroute.AppRouteConstant;
import com.swgk.core.base.aroute.provider.WebViewProvider;
import cn.sharesdk.framework.Platform;

@Route(path =  AppRouteConstant.HuiYuan.ROUTER_PATH_WEB, name = "H5界面跳转")
public class WebViewProviderImpl implements WebViewProvider {

    private Platform platform;

    @Override
    public void start(Context mContext, String url) {
        WebViewX5HostActivity.start(mContext, url);
    }

    @Override
    public void start(Context context, String url, int requestCode) {
        WebViewX5HostActivity.start(context, url, requestCode);
    }

    @Override
    public void start(Context context, String url, String text, int requestCode) {
        WebViewX5HostActivity.start(context, url, text, requestCode);
    }

    @Override
    public void start(Context context, String url, String id) {
        WebViewX5HostActivity.start(context, url, id);
    }

    @Override
    public void start(Context context, String url, String id, String type, String state) {
        WebViewX5HostActivity.start(context,url,id,type,state);
    }

    @Override
    public void startAuctionPublish(Context context, int requestCode) {
        AuctionPublishActivity.start(context);
    }

    @Override
    public void startProjectIssue(Context context, int code) {
        context.startActivity(new Intent(context, ProjectIssueActivity.class).putExtra("type", 2));
    }

    @Override
    public void init(Context context) {

    }
}
